import request from '@/utils/request'

// 查询文章文件列表
export function listArtEssayFiles(query) {
  return request({
    url: '/art/artEssayFiles/list',
    method: 'get',
    params: query
  })
}

// 查询文章文件详细
export function getArtEssayFiles(id) {
  return request({
    url: '/art/artEssayFiles/' + id,
    method: 'get'
  })
}

// 新增文章文件
export function addArtEssayFiles(data) {
  return request({
    url: '/art/artEssayFiles',
    method: 'post',
    data: data
  })
}

// 修改文章文件
export function updateArtEssayFiles(data) {
  return request({
    url: '/art/artEssayFiles',
    method: 'put',
    data: data
  })
}

// 删除文章文件
export function delArtEssayFiles(id) {
  return request({
    url: '/art/artEssayFiles/' + id,
    method: 'delete'
  })
}
